<%--
    Document   : error
    Created on : Jun 6, 2014, 4:34:44 AM
    Author     : Yogesh Paisode
--%>


<%

        String firstName=(String)session.getAttribute("firstName");
        String lastName=(String)session.getAttribute("lastName");
%>
<jsp:include page="header.jsp"/>
<jsp:include page="startUpWith.jsp"/>


<script type="text/javascript">
	window.history.forward(1);
	function noBack()
  {
            window.history.forward();
  }
</script>


<div style="position:relative;width: auto;z-index: 10000;">
    <div id="cssmenu" style="background-color: black;">
     <section class="innerpages">
         <div class="grid_12" style="background-image: url('commonfiles/images/satyapal.jpg'); width:100%;">
             <h1>Message From VehicleHai.com..</h1>
         </div>
     </section>
</div>
</div>



<%
          
        out.print("<title>Thank You "+firstName.substring(0,1).toUpperCase()+firstName.substring(1)+"</title>");


        String data1=(String)request.getAttribute("data");
        String data2="";


            if(data1==null){

               data1=(String)session.getAttribute("data");

            }     

                

                 

                if(data1.equals("profile.jsp")){

                    out.print("<script>var data='profile.jsp';</script>");
                    data2="Profile Updation ";
                    data2=data2+"<br><img src='https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRAEcEkv7BmVA_gju_novzqDCIKTYEA0PdEMo4ac7_nNQ6VLA6-Dw'/>";

                    com.ProfileCompletion.Model.ProfileCompletion_Model ProfileCompletion=(com.ProfileCompletion.Model.ProfileCompletion_Model)request.getAttribute("com.ProfileCompletion.Model.ProfileCompletion_Model");
                    
                    session.setAttribute("firstName",ProfileCompletion.getFirstName());
                    session.setAttribute("lastName",ProfileCompletion.getLastName());
                    session.setAttribute("id",ProfileCompletion.getId());
                    session.setAttribute("middelName",ProfileCompletion.getMiddelName());
                    session.setAttribute("address",ProfileCompletion.getAddress());
                    session.setAttribute("mobileNumber",ProfileCompletion.getMobileNumber());
                    session.setAttribute("emailId",ProfileCompletion.getEmailId());
                    session.setAttribute("gender",ProfileCompletion.getGender());
                    session.setAttribute("dob",ProfileCompletion.getDob());
                    session.setAttribute("password",ProfileCompletion.getPassword());
                    session.setAttribute("city",ProfileCompletion.getCity());
                    session.setAttribute("CountryState",ProfileCompletion.getCountryState());
                    session.setAttribute("pinCode",ProfileCompletion.getPinCode());
                    session.setAttribute("contry",ProfileCompletion.getContry());
                    session.setAttribute("profPic",ProfileCompletion.getProfPic());


                    session.setAttribute("profileCompletion",request.getAttribute("state"));

                    }



                    


      




%>

<script>



     var myVar=setInterval(function(){myTimer()},1000);

     var count=0;
     var revCount=9;
     function myTimer() {

                    revCount=revCount-1;
                $('#out').html(revCount+" ");
        count=count+1;

                    if(count==8){

                         window.location.href=data;
                       // alert(data);

                    }


     }


</script>

<div class="block2">
  <div class="container_12">
    <!--==============================content================================-->
    <section class="content">
      <div class="wrapper">
        <article class="grid_12 last-col">
            <br><br><br><br><br><br>
            <div class="hello_box" align="center">Message From www.VehicleHai.com<br>Thank You <%

            if(firstName==null){
                out.print("User");

            }
        else{
                 out.print(" "+firstName+" "+lastName);
            }

               
                           %><br>For Showing Your Intrest in <%


                                out.print(data2);

               %><br>Have A Nice Time Always........<br><br>We Are Redirecting In <div id="out"></div> Sec</div>
        </article>
      </div>
      <div class="wrapper projects">
        <div class="row clearfix">
            <br>
<br>
<br>


        </div>
      </div>
    </section>
  </div>
</div>



<jsp:include page="footer.jsp"/>
